package com.ouheng.shop.service;

import com.ouheng.common.domain.Tree;
import com.ouheng.shop.domain.ProductDO;
import com.ouheng.shop.domain.ProductGroupDO;
import com.ouheng.shop.domain.RushPurchaseDO;

import java.util.List;
import java.util.Map;

/**
 * 抢购
 * 
 * @author chglee
 * @email 1992lcg@163.com
 * @date 2018-08-30 09:33:07
 */
public interface RushPurchaseService {
	
	RushPurchaseDO get(Long id);
	
	List<RushPurchaseDO> list(Map<String, Object> map);
	
	int count(Map<String, Object> map);
	
	int save(RushPurchaseDO rushPurchase);
	
	int update(RushPurchaseDO rushPurchase);
	
	int remove(Long id);
	
	int batchRemove(Long[] ids);
	
	Tree<ProductDO> getTree(Long id);
	
	void saveRelevance(RushPurchaseDO rushPurchase);
	
	void saveRelevance(Long pid,Long[] ppids);
}
